/**
 * 验证工具
 * */
layui.define((exports) => {
	let sdVerify = {

		phone(txt) {
			let reg = /^1[3456789]\d{9}$/;
			return reg.test(txt);
		},
		number(txt) {
			let reg = /^[0-9]*$/;
			return reg.test(txt);
		},
		email(txt) {
			let reg = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
			return reg.test(txt);
		}
	}
	exports('sdVerify', sdVerify);
})
